import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SNewBattleFieldInfo
    
    export  class SNewBattleFieldInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.fieldId.__write(arg1);
            arg1.writeInt(this.playerNum);
            arg1.writeInt(this.minLevel);
            arg1.writeInt(this.maxLevel);
            arg1.writeBool(this.belongTo);
            arg1.writeBool(this.close);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.fieldId = new SEntityId();
            this.fieldId.__read(arg1);
            this.playerNum = arg1.readInt();
            this.minLevel = arg1.readInt();
            this.maxLevel = arg1.readInt();
            this.belongTo = arg1.readBool();
            this.close = arg1.readBool();
            return;
        }

        public /* var */fieldId: SEntityId;

        public /* var */playerNum: int;

        public /* var */minLevel: int;

        public /* var */maxLevel: int;

        public /* var */belongTo: Boolean;

        public /* var */close: Boolean;
    }
